package cn.xopencode.oss.dal.mysql.dataobject.permission;

import cn.xopencode.mybatis.core.dataobject.DeletableDO;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * {@link PositionDO} 和 {@link ResourceDO} 的关联表
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("oss_position_resource")
public class PositionResourceDO extends DeletableDO {

    /**
     * 编号
     */
    private String id;
    /**
     * 职务编号(外键：{@link PositionDO}
     */
    private String positionId;
    /**
     * 资源编号(外键：{@link ResourceDO}
     */
    private String resourceId;

}
